﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Modulos.aspx.cs" Inherits="UI.Web.Modulos" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="bodyContentPlaceHolder" runat="server">
<link id="cssGrid" rel="stylesheet" type="text/css" href="css/gridCSS.css"/> 
<link id="Link1" rel="stylesheet" type="text/css" href="css/MainStyle.css"/> 

    <asp:GridView ID="gvModulos" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" onselectedindexchanged="gvModulos_SelectedIndexChanged" 
        CssClass="table" AllowPaging="True" 
        PageSize="12">
        <FooterStyle CssClass="FooterStyle" />  
        <PagerStyle CssClass="gridpager" />
        <RowStyle CssClass="RowStyle" /> 
        <HeaderStyle CssClass="HeaderStyle" /> 
        <AlternatingRowStyle CssClass="AlternateRowStyle" />
         <Columns>
        <asp:BoundField Headertext="Id" DataField="Id" />
        <asp:BoundField Headertext="Descripcion" DataField="descripcion" />
        <asp:CommandField HeaderText="Seleccionar" ShowSelectButton="true" />

        </Columns>
        
    </asp:GridView>
    
        <asp:Panel ID="Panel1" runat="server" Visible="False">
                <br />
                <asp:Label ID="lblDescripcion" runat="server" Text="Descripcion: "/>
                <asp:TextBox ID="txtDescripcion" runat="server"/>             
                
                <asp:Panel ID="formActionsPanel" runat="server">
                <br />
                <asp:Button ID="btnAceptar" runat="server" CssClass="buttonAceptar" Text="Aceptar" 
                        onclick="btnAceptar_Click" />
                <asp:Button ID="btnCancelar" runat="server" CssClass="buttonEliminar" Text="Cancelar" 
                        onclick="btnCancelar_Click" />

                </asp:Panel>
        </asp:Panel>
                <br />
                <asp:Panel ID="gridActionsMaterias" runat="server">
                <asp:Button ID="btnNuevo" runat="server" CssClass="button" Text="Nuevo" 
                        onclick="btnNuevo_Click"/>
                <asp:Button ID="btnEditar" runat="server" CssClass="button" Text="Editar" 
                        onclick="btnEditar_Click"/>
                <asp:Button ID="btnEliminar" runat="server" CssClass="buttonEliminar" Text="Eliminar" 
                        onclick="btnEliminar_Click"/>
                </asp:Panel>
</asp:Content>
